// 页面搜索条件配置
export const searchColumns = (that) => [
  ];

// 页面表格配置
export const tableSchema = [
  {
    type: 'selection',
    fixed: 'left',
  },
    {
      label: '用户信息',
      dataIndex: 'nickName',
      customSlot: 'nickName',
      width: '180',
    },
    {
      label: '用户ID',
      dataIndex: 'id',
      width: '180',
    },
    {
      label: '身份标签',
      dataIndex: 'tag',
      width: '180',
    },
    {
      label: '实名认证',
      dataIndex: 'authStatus',
      customSlot: 'authStatus',
      width: '180',
    },
    {
      label: '真实姓名',
      dataIndex: 'name',
      width: '180',
    },
    {
      label: '身份证号',
      dataIndex: 'identityCard',
      width: '180',
    },
    {
      label: '船员资质认证',
      dataIndex: 'crewStatus',
      customSlot: 'crewStatus',
      width: '180',
    },
    {
      label: '团队角色',
      dataIndex: 'typeText',
      width: '180',
    },
    {
      label: '加入时间',
      dataIndex: 'workDate',
      width: '180',
    },
    {
      label: '账号状态',
      dataIndex: 'status',
      customSlot: 'status',
      width: '180',
    },
];

// 表格操作配置
export const tableActions = (handleUpdate, handleStatusChange, handleShowDetail) => [
  {
    width: 220,
    label: '操作',
    buttons: [
      {
        label: '查看详情',
        onClick: (row) => {
          handleShowDetail(row);
        },
      },
      {
        label: '编辑',
        onClick: (row) => {
          handleUpdate(row);
        },
      },
      {
        label: '禁用',
        onClick: (row) => {
          handleStatusChange(row);
        },
      }
    ],
  },
];
